import request from '@/utils/request'

// 查询商品经理列表
export function listGoodsmanager(query) {
  return request({
    url: '/item/goodsmanager/list',
    method: 'get',
    params: query
  })
}

// 查询商品经理详细
export function getGoodsmanager(id) {
  return request({
    url: '/item/goodsmanager/' + id,
    method: 'get'
  })
}

// 新增商品经理
export function addGoodsmanager(data) {
  return request({
    url: '/item/goodsmanager',
    method: 'post',
    data: data
  })
}

// 修改商品经理
export function updateGoodsmanager(data) {
  return request({
    url: '/item/goodsmanager',
    method: 'put',
    data: data
  })
}

// 删除商品经理
export function delGoodsmanager(id) {
  return request({
    url: '/item/goodsmanager/' + id,
    method: 'delete'
  })
}
